package dbconnector.impl;

import java.util.Date;
import java.util.Dictionary;
import java.util.Hashtable;

import dbconnector.service.IServiceInfo;

public class ServiceInfo implements IServiceInfo {
	String id;
	String serviceName;
	String host;
	String queueName;
	Date timestamp;
	Dictionary<String, String> properties;

	public ServiceInfo() {
		super();
		this.id = null;
		this.serviceName = null;
		this.host = null;
		this.queueName = null;
		this.properties = new Hashtable<String, String>();
	}

	@Override
	public String getId() {
		return id;
	}

	@Override
	public void setId(String id) {
		this.id = id;
	}

	@Override
	public String getServiceName() {
		return serviceName;
	}

	public void setServiceName(String serviceName) {
		this.serviceName = serviceName;
	}

	@Override
	public String getHost() {
		return host;
	}

	@Override
	public void setHost(String host) {
		this.host = host;
	}

	@Override
	public String getQueueName() {
		return queueName;
	}

	@Override
	public void setQueueName(String queueName) {
		this.queueName = queueName;
	}

	@Override
	public Date getTimestamp() {
		return timestamp;
	}

	@Override
	public void setTimestamp(Date timestamp) {
		this.timestamp = timestamp;

	}

	@Override
	public Dictionary<String, String> getProperties() {
		return properties;
	}

	@Override
	public void setProperties(Dictionary<String, String> properties) {
		this.properties = properties;
	}

	@Override
	public String getProperty(String key) {
		return properties.get(key);
	}

	@Override
	public void addProperty(String key, String value) {
		properties.put(key, value);
	}

}
